package tw.sam;

public class Animal {
	protected String name;
	protected int age;
	
	// Constructor
	public Animal(){
		name = "";
		age = 0;
		System.out.println("Animal class genetated !!");
	}
	
	public Animal(String name, int age){
		this.name = name;
		this.age = age;
		System.out.println("Animal class genetated !!");
	}
	
	// Methods
	
	public void eat(){
		System.out.println("Eating ...");
	}
	
	public void sleep(){
		System.out.println("Sleep ...");
	}
}
